package com.maretska.lima;

import org.junit.Test;



public class Main {

	@Test
	public void main(){
		Refrigrator kulkas;
		Truck truck = new Truck();
		truck.arraylistRefrigrator.add(0, kulkas = new Refrigrator("Panasonic"));
		kulkas.arraylistWatermelon.add(new Watermelon("Hijau"));
		System.out.println("Saya punya truck, isinya kulkas " + truck.arraylistRefrigrator.get(0).refrigeratorName + ".");
		System.out.println("Nah, didalam kulkas " + truck.arraylistRefrigrator.get(0).refrigeratorName + " berisi semangka berwarna " + kulkas.arraylistWatermelon.get(0).color + ".");
	}
}
